<?php
/**
 *  仓库
*/

namespace app\api\model;

class Warehouse extends BaseModel
{
    /**
     *  判断是否是国内商品
    */
    public function getContinentAttr($value,$data)
    {
        if (isset($data['country']) && $data['country'] == 101) {
            return 1;
        } else {
            return 0;
        }
    }
}
